from flask import Flask
from flask_cors import CORS

from day15.student_manager import StudentManager
from day15.student_model import StudentModel
from day15.students_manage_bp import stu_manager_bp

app=Flask(__name__)

#全局解决跨域问题
CORS(app, supports_credentials=True)
# 学员的信息管理 路由注册
app.register_blueprint(stu_manager_bp)

if __name__ == '__main__':

    app.run(host="0.0.0.0",debug=True,port=5000)